package com.neusoft.healthcity.config;

import org.springframework.stereotype.Component;

@Component
public class RandomNum {
    public static String get5NumString(){
        String result ="";
        char[] str = "0123456789".toCharArray();
        for(int i = 0; i < 5; i++) {
            int indexNumber = (int) (Math.random() * str.length);
            result += str[indexNumber];
        }
        return result;
    }
}
